<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <script type="text/javascript">
      function isSupportsES6Modules() {
        const script = document.createElement('script');
        if ('noModule' in script) {
          return true;
        }
        script.type = 'module';
        return script.type === 'module';
      }
      function isSupportDynamicImport() {
         try {
          new Function('import("")');
          return true;
        } catch (error) {
          return false;
        }
      }
      if (!isSupportsES6Modules() || !isSupportDynamicImport()) {
        console.error(`isSupportsES6Modules: ${isSupportsES6Modules()}, isSupportDynamicImport: ${isSupportDynamicImport()}.`)
        alert("The current browser failed to load the page, we recommend you use the latest version of chrome browser.");
      }
    </script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
